package edu.lingnan.lingnanblog.dao;

import edu.lingnan.lingnanblog.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author wuyuan
 * @since 2020-06-18 16:52
 */
@Mapper
@Repository
public interface CommentDao {
    public int add(Comment comment);
    public int update(Comment comment);
    public List<Comment> list(Map<String, Object> map);

    /**
     * 获取总记录数
     * @param map
     * @return
     */
    public Long getTotal(Map<String, Object> map);
    public Integer delete(Integer id);
}

